home *** CD-ROM | disk | FTP | other *** search
- //***********************************************************************
- //
- // Wanderer.cpp
- //
- //***********************************************************************
-
- #include <afxwin.h>
- #include <afxext.h>
- #include <afxcview.h>
- #include "Resource.h"
- #include "Wanderer.h"
- #include "MainFrame.h"
- #include "WandDoc.h"
- #include "DriveView.h"
-
- CMyApp myApp;
-
- BOOL CMyApp::InitInstance ()
- {
- SetRegistryKey ("Programming Windows 95 with MFC");
- LoadStdProfileSettings ();
-
- CSingleDocTemplate* pDocTemplate;
- pDocTemplate = new CSingleDocTemplate (
- IDR_MAINFRAME,
- RUNTIME_CLASS (CWandDoc),
- RUNTIME_CLASS (CMainFrame),
- RUNTIME_CLASS (CDriveView)
- );
-
- AddDocTemplate (pDocTemplate);
-
- CCommandLineInfo cmdInfo;
- ParseCommandLine (cmdInfo);
-
- if (!ProcessShellCommand (cmdInfo))
- return FALSE;
-
- return TRUE;
- }
-